import React, { useState } from 'react'

export default function App() {
  const [count , setCount] = useState(0);
  return (
    <div>

        <h1>累加的值{count}</h1>

        <button onClick={ () => {setCount( count + 1)}  }>点击加一</button>
    </div>
  )
}
